package com.ischoolbar.programmer.dao.admin;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ischoolbar.programmer.entity.admin.RewardsAndpunishments;
import com.ischoolbar.programmer.entity.admin.Student;
import com.ischoolbar.programmer.entity.admin.Teacher;

@Repository
public interface TeacherDao extends BaseMapper<Teacher> {

	Teacher getTeacherDetail(Integer id);

	int updateTeacher(Teacher teach);

	public List<RewardsAndpunishments> queryStuScore(Integer id);

	int addRewardsAndpunishments(RewardsAndpunishments punishment);

	int stuScoreSubmit(Integer id);
	
	List<Student> getStudentByTeacher_ID(Integer teacher_ID);

	List<RewardsAndpunishments> getResults(String year, Integer upDownYear, Integer id);
	

}
